﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace AFCEPF.Samples.WebSamples.Controls2
{
    public partial class View_RequiredValidator : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnValidate_Click(object sender, EventArgs e)
        {
            if (Page.IsValid)
            {
                lblPageStatus.Text = "La page est valide (IsValid == true)";
            }
            else
            {
                lblPageStatus.Text = "La page n'est pas valide (IsValid == false)";
                
            }
        }
    }
}